package com.jnhc.lwh.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: liuwenhao
 * @Date: 2019/1/16 22:12
 * @Description:
 */
@FeignClient(name= "eureka-producer",fallback = HelloRemoteHystrix.class)
public interface HelloRemote {

    @RequestMapping(value="/hello")
    public String hello(@RequestParam(value = "name") String name);
}